using System;
using System.Text;
using System.Collections.Generic;
using System.Collections.Specialized;

namespace My.IdlConverter.Core.Parsers
{
    public class ParserBase : IParser
    {
        private bool _isSuccessful;
        private OverloadMehodCollision _overloadCollision;

        public ParserBase()
        {
            _isSuccessful = false;
        }
        ~ParserBase() { }

        public virtual object Parse(string target)
        {
            return null;
        }

        public virtual bool Success
        {
            get
            {
                return _isSuccessful;
            }
            protected set
            {
                _isSuccessful = value;
            }
        }

        public OverloadMehodCollision OverloadCollision
        {
            get
            {
                return _overloadCollision;
            }
            set
            {
                _overloadCollision = value;
            }
        }
    }
}
